﻿create proc sp_themnhomvt
@tennhomvt nvarchar(200)
as
declare @dem as int
select @dem=count(*) from DanhMucNhomVT where TenNhomVT=@tennhomvt
if(@dem=0)
	begin
	insert into DanhMucNhomVT(TenNhomVT)
	values (@tennhomvt)
	select ErrCode=1
	end
else
	begin
	Select ErrCode=0
	end	